import Vue from 'vue'
import Router from 'vue-router';
import index from '../pages/index';
import login from '../pages/login';
import myclass from '../pages/myclass';
import myorder from '../pages/myorder';
import secsetting from '../pages/secsetting';
import classdetails from '../pages/classdetails';
import recharge from '../pages/recharge';
import signup from '../pages/signup';
import integral from '../pages/integral';
import groupreg from '../pages/groupreg';
import my from '../pages/my';
import classban from '../pages/classban';
import curriculum from '../pages/curriculum';
import confirmorder from '../pages/confirmorder';
import ordercomagin from '../pages/ordercomagin';
import sureorder from '../pages/sureorder';
import uploadcredent from '../pages/uploadcredent';
import confirmation from '../pages/confirmation';

import capital from '../pages/capital';
import register from '../pages/register';
import payres from '../pages/payres';
import inforevise from '../pages/inforevise';
import baomingrevise from '../pages/baomingrevise';
import offlinemoney from '../pages/offlinemoney';
import mybaoming from '../pages/mybaoming';
import mykc from '../pages/mykc';
import addstudent from '../pages/addstudent';
import myTimetable from '../pages/myTimetable';





Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [{
            path: '/',
            redirect: '/login'
        },
        {
            path: '/index',
            name: 'index',
            component: index,
            meta: {
                title: '首页'
            }
        }, {
            path: '/login',
            name: 'login',
            component: login
        }, {
            path: '/myclass',
            name: 'myclass',
            component: myclass
        }, {
            path: '/myorder',
            name: 'myorder',
            component: myorder

        }, {
            path: '/secsetting',
            name: 'secsetting',
            component: secsetting
        }, {
            path: "/classdetails",
            name: 'classdetails',
            component: classdetails
        }, {
            path: '/recharge',
            name: 'recharge',
            component: recharge
        }, {
            path: '/signup',
            name: 'signup',
            component: signup
        }, {
            path: '/integral',
            name: 'integral',
            component: integral
        }, {
            path: '/groupreg',
            name: 'groupreg',
            component: groupreg
        }, {
            path: '/my',
            name: 'my',
            component: my
        }, {
            path: '/classban',
            name: 'classban',
            component: classban
        }, {
            path: '/curriculum',
            name: 'curriculum',
            component: curriculum
        }, {
            path: '/confirmorder',
            name: 'confirmorder',
            component: confirmorder
        }, {
            path: '/ordercomagin',
            name: 'ordercomagin',
            component: ordercomagin
        }, {
            path: '/sureorder',
            name: 'sureorder',
            component: sureorder
        }, {
            path: '/uploadcredent',
            name: 'uploadcredent',
            component: uploadcredent
        }, {
            path: '/confirmation',
            name: 'confirmation',
            component: confirmation


        }, {
            path: '/capital',
            name: 'capital',
            component: capital
        },
        {
            path: '/register',
            name: 'register',
            component: register
        },
        {
            path: '/payres',
            name: 'payres',
            component: payres
        }, {
            path: '/inforevise',
            name: 'inforevise',
            component: inforevise
        }, {
            path: '/baomingrevise',
            name: 'baomingrevise',
            component: baomingrevise
        }, {
            path: '/offlinemoney',
            name: 'offlinemoney',
            component: offlinemoney
        }, {
            path: '/mybaoming',
            name: 'mybaoming',
            component: mybaoming
        }, {
            path: '/mykc',
            name: 'mykc',
            component: mykc
        }, {
            path: '/addstudent',
            name: 'addstudent',
            component: addstudent
        }, {
            path: '/myTimetable',
            name: 'myTimetable',
            component: myTimetable
        }
    ]
})